<template>
  <div class="box">
    <button @click="print">打印log</button>
    <p>{{ objGoods.name }}: {{ objGoods.descript }}</p>
  </div>

</template>

<script setup lang="ts">
import type { goods } from './types/customerType';
const objGoods: goods = {
  id: 1,
  name: '苹果',
  descript: '大又圆又甜'
}

const print = () => {
  console.log(objGoods)
}

</script>

<style scoped>
.box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}
</style>
